public import std.path;
import std.stdio;
import std.file;


//TODO: if in the bin path, the path will be start path
@property theExectorPath()
{
    return _theExectorPath;
}

void main()
{
    writeln(dirName(thisExePath));
}

private:

shared string _theExectorPath = "";

shared static this()
{
    import core.runtime;

    auto list = Runtime.args();
    
/*    writeln("arg list is : ",list);
    string tpath =  dirName(list[0]);
	string abspath = absolutePath(tpath);
	writeln("main shared static list[0]  = ", list[0]);
	writeln("main shared static this tpath = ", tpath);
	writeln("main shared static this abspath = ", abspath);*/
	
    _theExectorPath = absolutePath(dirName(list[0]));
} 
